<!DOCTYPE html>
<html style="height: 100%">
   <head>
       <meta charset="utf-8">
   </head>
   <body style="height: 100%; margin: 0">
       <div id="container" style="height: 100%"></div>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
       <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
       <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
    legend: {},
    tooltip: {},
    dataset: {
        source: [
            ['product', '前80章平均出现次数', '后40章平均出现次数'],
            ['了', 178, 173],
            ['的', 126, 137],
            ['不', 125, 125],
            ['一', 108, 86],
            ['来', 93, 98],
            ['道', 91, 94],
            ['人', 86, 91],
            ['我', 80, 68],
            ['说', 80, 86],
            ['是', 80, 93],

            ['他', 68, 56],
            ['这', 68, 60],
            ['你', 64, 0],
            ['去', 53, 0],
            ['个', 51, 0],
            ['子', 51, 0],
            ['也', 50, 51],
            ['儿', 50, 51],
            ['玉', 50, 51],
            ['有', 49, 51],

            ['着', 0, 60],
            ['里', 0, 55],
            ['贾', 0, 53],
            ['宝', 0, 51]
        ]
    },
    xAxis: {type: 'category'},
    yAxis: {},
    // Declare several bar series, each will be mapped
    // to a column of dataset.source by default.
    series: [
        {type: 'bar'},
        {type: 'bar'}
    ]
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
        </script>
    </body>
</html>